package com.xuecheng.teaching.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.xuecheng.api.teaching.model.dto.WorkDTO;
import com.xuecheng.common.domain.page.PageRequestParams;
import com.xuecheng.common.domain.page.PageVO;
import com.xuecheng.common.domain.response.RestResponse;
import com.xuecheng.teaching.entity.Work;

/**
 * <p>
 * 作业 服务类
 * </p>
 *
 * @author itcast
 * @since 2021-12-25
 */
public interface WorkService extends IService<Work> {

    /**
     * 分页条件查询课程计划作业列表
     *
     * @param params
     * @param companyId
     * @return
     */
    PageVO<WorkDTO> queryWorkList(PageRequestParams params,String title, Long companyId);

    


    /**
     * .新增或修改作业
     *
     * @param workDTO   WorkDTO 作业封装DTO类
     * @param companyId Long 机构id
     * @return
     */
    WorkDTO createOrModifyWork(WorkDTO workDTO, Long companyId);

    /**
     *
     * @param workId 课程计划Id值
     * @param companyId 机构id
     */
    void removeWork(Long workId,Long companyId);

    /**
     * 根据Id查询媒资信息-远程调用
     * @param workId
     * @return
     */
    RestResponse<WorkDTO> getWorkById4c(Long workId);
}
